﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace System.Data.Cassandra.Connection
{
    public class CassandraConnectionEventArgs : EventArgs
    {
        private readonly string hostName;
        private readonly TimeSpan elapsed;
        private readonly Exception exception;

        public string HostName
        {
            get
            {
                return hostName;
            }
        }
        public TimeSpan Elapsed
        {
            get
            {
                return elapsed;
            }
        }
        public Exception Exception
        {
            get
            {
                return exception;
            }
        }

        public CassandraConnectionEventArgs(string hostName, TimeSpan elapsed, Exception err)
        {
            this.hostName = hostName;
            this.elapsed = elapsed;
            exception = err;
        }
    }
}